
<!--
  /**************************************************
  * @ ordersubmittoapep.jsp
  *
  * Copyright   2005 Hitrust Technology Inc.
  * Developed by SDC, Hitrust.
  * All Rights Reserved.
  *
  * Modify History:
  *  v1.00, 2006/03/17, Road Zheng
  *  1) first release
  /**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<%@page import="system.LoginContext"%>
<%@page import="framework.core.SrvContext"%>
<html>
<head>
<title>网上订单处理</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<!--<LINK href="<%=root%>/css/css.css" type=text/css rel=stylesheet>-->
<LINK href="<%=root%>/css/caigouxitong.css"" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>

<%
ArrayList ary = (ArrayList)request.getAttribute("organdaddr");
	ArrayList tManuf1 = (ArrayList) request.getAttribute("manufacture1");
	HashMap tMap1 = (HashMap) request.getAttribute("manufacturetyp2");
	HashMap tMap2 = (HashMap) request.getAttribute("manufacturetyp3");
	ResultProcess tOrder = (ResultProcess)request.getAttribute("order");
	String totalAmt = (String)request.getAttribute("totalAmt") ;
	if(totalAmt == null){
		totalAmt = "0";
	}
	ArrayList tList = new ArrayList();
	String [] tStr = null;
	String isRequery  = (String)request.getAttribute("requery");
%>
<script>
	var counter;
	function process(val){
		if(val == 'Q'){
			var tStr = "";
			var tEnd = "";
			if(!isEmpty(ordersubmittoapepform.orderCreateDateStr.value)){
				tStr = ordersubmittoapepform.orderCreateDateStr.value.substr(0,4) + ordersubmittoapepform.orderCreateDateStr.value.substr(5,2) + ordersubmittoapepform.orderCreateDateStr.value.substr(8,2);

			}
			if(!isEmpty(ordersubmittoapepform.orderCreateDateEnd.value)){
				tEnd = ordersubmittoapepform.orderCreateDateEnd.value.substr(0,4) + ordersubmittoapepform.orderCreateDateEnd.value.substr(5,2) + ordersubmittoapepform.orderCreateDateEnd.value.substr(8,2);
			}
			if(parseInt(tStr) > parseInt(tEnd)){
					alert("订单创建周期的开始日期不能大于截止日期！");
					return false;
			}
			ordersubmittoapepform.action = "<%=response.encodeURL(root + "/A150302.do")%>";
    		ordersubmittoapepform.submit();			
		}else if(val == 'C'){
			ordersubmittoapepform.orderDetailId.value ="";
			ordersubmittoapepform.orderDeptId.value="";
			ordersubmittoapepform.manuftype1.value="0";
			ordersubmittoapepform.providerName.value="";
            ordersubmittoapepform.orderDeptId.options[0].selected = true;
            
		    listbox = document.getElementById("manuftype2");
		    listbox.length = 0;
		    var option = new Option();
		    option.text = "---二级---";
		    option.value = "0";
		    listbox.options[listbox.length] = option;
		
	        listbox = document.getElementById("manuftype3");
	        listbox.length = 0;
	        var option = new Option();
	        option.text = "---三级---";
	        option.value = "0";
	        listbox.options[listbox.length] = option;		
	        
			ordersubmittoapepform.concentricityId.value = "";
			ordersubmittoapepform.manufInfo.value = "";
			ordersubmittoapepform.orderCreateDateStr.value = "";
			ordersubmittoapepform.orderCreateDateEnd.value = "";
            ordersubmittoapepform.drawingpiececode.value = "";
			return false;		
		}else if(val == 'T'){
			if(pager.orderDetailIds != null){		
				if(!isCheckBoxselected(pager,pager.orderDetailIds)){
					alert("请至少选择一笔订单！");
					return false;
				}else{
					document.pager.orderDetailId.value = document.ordersubmittoapepform.orderDetailId.value;
					document.pager.providerName.value = document.ordersubmittoapepform.providerName.value;					
					document.pager.concentricityId.value = document.ordersubmittoapepform.concentricityId.value;
					document.pager.orderDeptId.value = document.ordersubmittoapepform.orderDeptId.value;
					document.pager.manuftype1.value = document.ordersubmittoapepform.manuftype1.value;
					document.pager.manuftype2.value = document.ordersubmittoapepform.manuftype2.value;
					document.pager.manuftype3.value = document.ordersubmittoapepform.manuftype3.value;
					document.pager.manufInfo.value = document.ordersubmittoapepform.manufInfo.value;
					document.pager.orderCreateDateStr.value = document.ordersubmittoapepform.orderCreateDateStr.value;																				
					document.pager.orderCreateDateEnd.value = document.ordersubmittoapepform.orderCreateDateEnd.value;																									
					
					if(confirm("是否确定提交？")){						
						document.pager.action = "<%=response.encodeURL(root+"/A150303.do")%>";			
						document.pager.submit();
					}else{
						return false;
					}			
				}	
			}else{
				return false;
			}	
		}

	}		
function change1(optval){
  var val = optval;
  if(val=='0'){
    var listbox = document.getElementById("manuftype2");
    listbox.length = 0;
    var option = new Option();
    option.text = "---二级---";
    option.value = "0";
    listbox.options[listbox.length] = option;
    change2(optval);
  }else{
      var counter="0";
    <%if(tMap1 !=null){
      Collection tCollection = tMap1.keySet();
      Iterator tIterator = tCollection.iterator();
      while(tIterator.hasNext()){
        String tKey = (String)tIterator.next();
        tList = (ArrayList)tMap1.get(tKey);%>
        if(val == '<%=tKey%>'){
		  counter = "1";
          var listbox = document.getElementById("manuftype2");
          listbox.length = 0;
          var option = new Option();
          option.value = "0";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;
          <%
	          	for(int n=0;n<tList.size();n++){
		            GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList.get(n);
		            String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
		            String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
		            var temp1 = '<%=categoryId%>';
		            var temp2 = '<%=categoryName%>';
		            var option = new Option();
		            option.value = temp1;
		            option.text = temp2;
		            listbox.options[listbox.length] = option;
           <%
	       		}
           %>
			change2('0');           
         }
         
    <%
    	}
    %>
    	if(counter == '0'){
          var listbox = document.getElementById("manuftype2");
          listbox.length = 0;
          var option = new Option();
          option.value = "0";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;  
          change2('0');    	
    	}
    <%  
    }
    %>
   }
}
    function change2(optval){
      var val = optval;
      if(val=='0'){
        var listbox = document.getElementById("manuftype3");
        listbox.length = 0;
        var option = new Option();
        option.text = "---三级---";
        option.value = "0";
        listbox.options[listbox.length] = option;

      }else{
      	var counter = "0";
        <%if(tMap2 !=null){
          Collection tCollection = tMap2.keySet();
          Iterator tIterator = tCollection.iterator();
          while(tIterator.hasNext()){
            String tKey = (String)tIterator.next();
            tList = (ArrayList)tMap2.get(tKey);%>
            if(val == '<%=tKey%>'){
              counter = "1";
              var listbox = document.getElementById("manuftype3");
              listbox.length = 0;
              var option = new Option();
              option.text = "---三级---";
              option.value = "0";
              listbox.options[listbox.length] = option;
              <%for(int n=0;n<tList.size();n++){
                GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList.get(n);
                String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
                String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
                var temp1 = '<%=categoryId%>';
                var temp2 = '<%=categoryName%>';
                var option = new Option();
                option.value = temp1;
                option.text = temp2;
                listbox.options[listbox.length] = option;
                <%}%>
              }
          <%
          }
          %>
          if(counter == '0'){
		        var listbox = document.getElementById("manuftype3");
		        listbox.length = 0;
		        var option = new Option();
		        option.text = "---三级---";
		        option.value = "0";
		        listbox.options[listbox.length] = option;          
          }
          <%
            }%>
          }
        }	
</script>
<script language="javascript">
function afterload()
{
  fileopen("OrderSubmittoApep.vts");
 
  //填入内容
<%
    if(tOrder != null) {
	tList = tOrder.getAllRecoreds();
	
	int count = 0;
	int head = 0;
	int tail = 0;	
	if(tList != null && tList.size() > 0){
	for(int i=0; i<tList.size(); i++){
	 tStr = (String[])tList.get(i);
%>	  
	  F1Book1.RowHeight(<%=count + 3%>)  = 300;
	  F1Book1.EntryRC ( <%=count + 3%>, 1) = "<%=tStr[0]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 2) = "<%=tStr[1]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 3) = "<%=tStr[2]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 4) = "<%=GSBaseManager.getIsTradeManuf(tStr[3])%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 5) = "<%=tStr[4]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 6) = "<%=tStr[5]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 7) = "<%=tStr[6]%>";
	  <%
			String temp = "";
			if(tStr[3].equals("0")){
				temp = "(采购网配送)";
			}
		%>
	  F1Book1.EntryRC ( <%=count + 3%>, 8) = "<%=tStr[7] + temp%>";	  
	  F1Book1.EntryRC ( <%=count + 3%>, 9) = "<%=tStr[8]%><%=tStr[9]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 10) = "<%=tStr[10]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 11) = "<%=tStr[11]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 12) = "<%=tStr[12]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 13) = "<%=tStr[13]%>";
	  F1Book1.EntryRC ( <%=count + 3%>, 14) = "<%=tStr[14]%>";
<%
	count = count +1;	
  }
%>
  
 
   //边界设定
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(2, 1, <%=count + 2%>, 14);
  F1CellFormat.BorderStyle(-2) = 1;
  F1CellFormat.BorderStyle(-1) = 1;
  F1CellFormat.BorderStyle(0) = 2;
  F1CellFormat.BorderStyle(1) = 2;
  F1CellFormat.BorderStyle(2) = 2;
  F1CellFormat.BorderStyle(3) = 2;
  F1CellFormat.BorderColor(-2) = 0;
  F1CellFormat.BorderColor(-1) = 0;
  F1CellFormat.BorderColor(0) = 0;
  F1CellFormat.BorderColor(1) = 0;
  F1CellFormat.BorderColor(2) = 0;
  F1CellFormat.BorderColor(3) = 0;
  F1Book1.SetCellFormat(F1CellFormat);
  
  //设置字体
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(3, 1, <%=count+2%>, 14);
  F1CellFormat.AlignHorizontal = 2;
  F1CellFormat.AlignVertical = 2;
  F1CellFormat.FontName = "宋体";
  F1CellFormat.FontSize = 6;
  F1Book1.SetCellFormat(F1CellFormat);
<%
	}
  }
%>
}

function fileopen(vts)
{
        var mylink=location.href;
        var i=mylink.length;
        while (mylink.substring(i-1,i)!= "/")
        {i--;}
        mylink=mylink.substring(0,i);
        F1Book1.URL = mylink+"jsp/ordersystem/bus/"+vts;
        F1Book1.ShowRowHeading  = false;
        F1Book1.ShowcolHeading  = false;
        F1Book1.Showtabs  = 0;
        F1Book1.ShowEditBar=false;
        F1Book1.EnableProtection=false;
        F1Book1.SetProtection(true,true);
}

function print_bill(){
    F1Book1.FilePrint(true);
}
function control(val){
		if(val == 'requery'){
			<%
				if(isRequery != null && isRequery.equals("true")){
			%>
			ordersubmittoapepform.action = "<%=response.encodeURL(root + "/A150302.do")%>";
    		ordersubmittoapepform.submit();		
			<%		
				}
			%>
		}
}
</script>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="afterload();control('requery')">
<form name=ordersubmittoapepform method="get" >
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td height="20">
			<table width="100%" border="0" cellspacing="0" cellpadding="1">
				<tr height="20">
					<td height="30" width="758" class="mtxt_black">网上订单明细处理
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="bg_line" height="2"></td>
	</tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				<TR height=20>
					<TD class="bg_column" align=center width="15%">订单明细编号</TD>
					<TD align=left class="bg_row_odd" width="35%">
					<input type="text" name="orderDetailId" value="<%=request.getParameter("orderDetailId")==null? "":request.getParameter("orderDetailId") %>" maxlength="11"></TD>					
					<TD class="bg_column" align=center width="15%">供应商</TD>
					<TD align=left class="bg_row_odd" width="35%">
					<input type="text" name="providerName" value="<%=request.getParameter("providerName")==null? "":request.getParameter("providerName") %>" maxlength="100"></TD>					
				</TR>
				<TR height=20>							
					<TD class="bg_column" align=center>订货单位</TD>
					<TD align=left class="bg_row_odd" colspan="3">
						<select name="orderDeptId">		
                            <%String warehouseCode = request.getParameter("orderDeptId")==null?"":request.getParameter("orderDeptId"); %>
                            <option value="<%=LoginContext.get(new SrvContext(request,response)).getLoginWarehouseCode() %>">---全部---</option><%
                              if(ary!=null&&ary.size()>0){
                                 for(int i=0;i<ary.size();i++){ 
                                     GSWareHouseBean tmp=(GSWareHouseBean)ary.get(i);%>
                                    <%if(tmp.getCode().equals(warehouseCode)){ %>
                                        <option value="<%=tmp.getCode() %>" selected><%=tmp.getName() %></option>
                                    <%}else{ %>
                                    <option value="<%=tmp.getCode() %>"><%=tmp.getName() %></option>
                            <%}}} %>         
						</select>
					</TD>			
				</TR>								
				<TR height=20>
					<TD class="bg_column" align=center>集中编码</TD>
					<TD align=left class="bg_row_odd">
					<input type="text" name="concentricityId" maxlength="20" value="<%=request.getParameter("concentricityId")==null?"":request.getParameter("concentricityId")%>">
					</TD>
                    <td class="bg_column" align=center >图件号</td>
                    <td align=left class="bg_row_odd" >
                    <input type="text" name="drawingpiececode" value="<%=request.getParameter("drawingpiececode")==null? "":request.getParameter("drawingpiececode") %>">
                    </td> 
				</TR>									
				<TR height=20>
					<TD class="bg_column" align=center>产品信息</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text" name="manufInfo" maxlength="200" value="<%=request.getParameter("manufInfo")==null?"":request.getParameter("manufInfo")%>">（<FONT color="#ff0033">对产品名称、型号、规格、品牌、生产厂商、附加属性等关键字的模糊查询</FONT>）&nbsp;
					</TD>
				</TR>			
				<TR height=20>							
					<TD class="bg_column" align=center>产品分类</TD>
					<TD align=left class="bg_row_odd" colspan="3">
				      <select name="manuftype1" onChange="change1(this.value)">
				        <option value="0">---一级---</option>
				        <%
				        String tManufType1 = request.getParameter("manuftype1");
				        if (tManuf1 != null && tManuf1.size() > 0) {
				          for (int i = 0; i < tManuf1.size(); i++) {
				            GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean) tManuf1.get(i);
				            if (tManufType1 != null && tManufType1.equals(tGSManufactureBean.getGs_manufacture_category_id())) {
				              %>
				              <option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>" selected><%=tGSManufactureBean.getGs_manufacture_category_name()%>        </option>
				              <%} else {      %>
				              <option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>"><%=tGSManufactureBean.getGs_manufacture_category_name()%>        </option>
				              <%
				              }
				            }
				          }
				          %>
				      </select>
				      <select id="manuftype2" name="manuftype2" onChange="change2(this.value)">
				        <option value="0">---二级---</option>
				        <%
				        String tManufType2 = request.getParameter("manuftype2");
				        if (tManufType1 != null && !tManufType1.equals("0")) {
				          ArrayList temp = (ArrayList) tMap1.get(tManufType1);
				          if (temp != null && temp.size() > 0) {
				            for (int i = 0; i < temp.size(); i++) {
				              GSManufactureCategoryBean tGSManuf2 = (GSManufactureCategoryBean) temp.get(i);
				              if (tManufType2 != null && tManufType2.equals(tGSManuf2.getGs_manufacture_category_id())) {
				                %>
				                <option value="<%=tManufType2%>" selected><%=tGSManuf2.getGs_manufacture_category_name()%>        </option>
				                <%} else {      %>
				                <option value="<%=tGSManuf2.getGs_manufacture_category_id()%>"><%=tGSManuf2.getGs_manufacture_category_name()%>        </option>
				                <%
				                }
				              }
				            }
				          }
				          %>
				      </select>
				      <select name="manuftype3" id="manuftype3">
				        <option value="0">---三级---</option>
				        <%
				        String tManufType3 = request.getParameter("manuftype3");
				        if (tManufType2 != null && !tManufType2.equals("0")) {
				          //int tIntManufType3 = Integer.parseInt(tManufType3);
				          ArrayList temp = (ArrayList) tMap2.get(tManufType2);
				          if (temp != null && temp.size() > 0) {
				            for (int i = 0; i < temp.size(); i++) {
				              GSManufactureCategoryBean tGSManuf3 = (GSManufactureCategoryBean) temp.get(i);
				              if (tManufType3 != null && tManufType3.equals(tGSManuf3.getGs_manufacture_category_id())) {
				                %>
				                <option value="<%=tGSManuf3.getGs_manufacture_category_id()%>" selected><%=tGSManuf3.getGs_manufacture_category_name()%>        </option>
				                <%} else {      %>
				                <option value="<%=tGSManuf3.getGs_manufacture_category_id()%>"><%=tGSManuf3.getGs_manufacture_category_name()%>        </option>
				                <%
				                }
				              }
				            }
				          }
				          %>
				      </select>					
					</TD>
				</TR>
                <%
                SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                Date d = new Date();
                String strNow = String.valueOf(bartDateFormat.format(d));
                long l=(long)259200*(long)10000;
                Date d2 = new Date(System.currentTimeMillis()-l);
                String strMothAgo = String.valueOf(bartDateFormat.format(d2));
                
                %>  												
				<TR height=20>	
					<TD class="bg_column" align=center>创建时间</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<%=framework.custom.UIManager.generateDateInput("orderCreateDateStr",
							request.getParameter("orderCreateDateStr")==null?strMothAgo:request.getParameter("orderCreateDateStr"))%>
					
					至
					<%=framework.custom.UIManager.generateDateInput("orderCreateDateEnd",
							request.getParameter("orderCreateDateEnd")==null?strNow:request.getParameter("orderCreateDateEnd"))%>
					
					</TD>
				</TR>
                
			</table>
		</td>
	</tr>
</table>
<%
int totalRecords = 0;
if(tOrder != null) {
    
    if(request.getAttribute("totalRecords")!=null){
        totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
    }
    int defaultPageSize =10;
    if(request.getAttribute("pageSize")!=null){
        defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
    }
    tList=tOrder.getAllRecoreds();
%>          
<page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'></page:pager>
<%} %>
</form>
    <p align="center">&nbsp;
<!--		<input type="image" src="<%=response.encodeURL(root+"/images/button/chaxun.gif")%>" width="58" height="24" class="box" onclick="process('Q')"/>&nbsp;-->
<!--		<input type="image" src="<%=response.encodeURL(root+"/images/button/clean.gif")%>" width="58" height="24" class="box" onclick="process('C')"/>&nbsp;				-->
		<input type="button" name="查询" value="查询" class="kuang" onclick="process('Q')"/>&nbsp;
		<input type="button" name="清空" value="清空" class="kuang" onclick="process('C')"/>&nbsp;
    </p>
<%
	
	if(tOrder != null){
%>
	<center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
        <form name='pager' method="post">
	    <input type="hidden" name="orderDetailId">
	    <input type="hidden" name="providerName">
	    <input type="hidden" name="manuftype1">
	    <input type="hidden" name="manuftype2">	    	    	    
	    <input type="hidden" name="manuftype3">	    
	    <input type="hidden" name="orderDeptId">            
	    <input type="hidden" name="deliverGoodsAddrId"> 	
	    <input type="hidden" name="concentricityId"> 
	    <input type="hidden" name="manufInfo"> 
	    <input type="hidden" name="orderCreateDateStr"> 
	    <input type="hidden" name="orderCreateDateEnd">              
            	<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20>
                        <td class=top align=center colspan="18"> 
                        <div align="center" class="txt_content"><b>订单明细列表</b>
                    	  </div>
						</td>					
					</tr> 
				    <tr class="bg_column" height="20">
				      <td class="top" align="right" colSpan="18">共<%=totalRecords%>笔待提交订单明细</td>
				    </tr>					
                    <tr class="bg_column" height=20> 
						<td align=center class=top>
						<div class="txt_content">全选<input type="checkbox" name="indexs" onClick="SelectAllCheckBox(pager,'orderDetailIds')"></div>
						</td> 
                        <td class=top align=center> 
                        <div align="center" class="txt_content">订单明细编号</div>
						</td>
                        <td class=top align=center> 
                        <div align="center" class="txt_content">集中编码</div>
						</td>						
                        <td class=top align=center> 
                        <div align="center" class="txt_content">产品名称</div>
						</td>
						<td class="top" align="center">
						  <div class="txt_content" align="center">产品类型</div>
						</td>						
                        <td class=top align=center> 
                        <div align="center" class="txt_content">规格</div>
						</td>
                        <td class=top align=center> 
                        <div align="center" class="txt_content">型号</div>
						</td>																																				
                        <td class=top align=center> 
                        <div align="center" class="txt_content">品牌</div>
						</td>	
                        <td class=top align=center> 
                        <div align="center" class="txt_content">图件号</div>
                        </td>										
                        <td class=top align=center> 
                        <div align="center" class="txt_content">供应商</div>
						</td>							
                        <td class=top align=center> 
                        <div align="center" class="txt_content">订货数量</div>
						</td>																					
                        <td class=top align=center> 
                        <div align="center" class="txt_content">价格（元）</div>
						</td>										
                        <td class=top align=center> 
                        <div align="center" class="txt_content">总价（元）</div>
						</td>											
                        <td class=top align=center> 
                        <div align="center" class="txt_content">订货单位</div>
						</td>																							
                        <td class=top align=center> 
                        <div align="center" class="txt_content">送货日期</div>
						</td>						
                        <td class=top align=center> 
                        <div align="center" class="txt_content">送货时间</div>
						</td>
                        <td class=top align=center> 
                        <div align="center" class="txt_content">结算模式</div>
                        </td>																		
                        <td class=top align=center> 
                        <div align="center" class="txt_content">详细信息</div>
						</td>																																				
					</tr>
					<%
						
						if(tList != null && tList.size() > 0){
						for(int i=0; i<tList.size(); i++){
							tStr = (String[])tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
					%>
							<tr <%=tTempStr%> height=20>
								<td class=top align=center> 								
									<div align="center" class="txt_content">
										<input type="checkbox" name="orderDetailIds" value="<%=tStr[0]%>">
										<input type="hidden" name="isTradeManuf" value="<%=tStr[3]%>">											
									</div>
								</td>								
								<td class=top align=center> 								
									<div align="center" class="txt_content">
									<%=tStr[0]%>
									</div>
								</td>	
								<td class=top align=center> 								
									<div align="center" class="txt_content">
									<%=tStr[1]%>
									</div>
								</td>														
								<td class=top align=center > 								
									<div align="center" class="txt_content">
									<a href="<%=response.encodeURL(root + "/A150103.do?&concentricityId="+tStr[1])%>" target="_blank"><%=tStr[2]%></a>
									</div>
								</td>	
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=GSBaseManager.getProductTypeByCode(tStr[19])%>
									</div>
								</td>				
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[4]%>
									</div>
								</td>													
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[5]%>
									</div>
								</td>
                                <td class=top align=center> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[6]%>
                                    </div>
                                </td>
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[20]%>
									</div>
								</td>								
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%
										String temp = "";
										if(tStr[3].equals("0")&& tStr[17].equals("0")){
											temp = "(采购网配送)";
										}
									%>
									<a href="<%=response.encodeURL(root +"/A400108.do?providerId="+tStr[16])%>" target="_blank"><%=tStr[7]%></a><%=temp%>
									</div>
								</td>								
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[8]%><%=tStr[9]%>
									</div>
								</td>															
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[10]%>
									</div>
								</td>																
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[11]%>
									</div>
								</td>	
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[12]%>
									</div>
								</td>															
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[13]%>
									</div>
								</td>			
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<%=tStr[14]%>
									</div>
								</td>
                                <td class=top align=center> 
                                    <div align="center" class="txt_content">
                                    <%=DefineDic.getBalanceMode(tStr[18])%>
                                    </div>
                                </td>																			
								<td class=top align=center> 
									<div align="center" class="txt_content">
									<a href="<%=response.encodeURL(root+"/A150304.do")%>?orderId=<%=tStr[15]%>&orderDetailId=<%=tStr[0]%>" target="_blank">详细</a>
									</div>
								</td>																																								
							</tr> 
					<%
						}
					%>
						  <tr class="bg_column" height=20>
						    <td width="960" height="16" colspan="18" align="right">
									<!--导航条-->
						    		<page:navigator type='text' queryForm='ordersubmittoapepform'/>
						    </td>
						  </tr>					
				    <%
						}else{
					%>
							<tr class="bg_column" height=20>
                            <td width="960" height="16" colspan="18" align="right">
                                   <font color="red">没有符合条件的订单信息</font>
                            </td>
                          </tr>
                            
					<%
						}
					%>
					</tbody>
				</table>
				</form>					  
			</td>
		</tr>
	</table>
	</center>
	<p align="center">  
    <input type="button" name="提交" value="提交" class="kuang" onclick="process('T')">&nbsp;
    <input type="button" name="打印" value="打印" class="kuang" onclick="if(confirm('是否确定打印？')) print_bill(); else return false;"/>&nbsp;
    
    </p>	
    
<%		
	}
	if(tOrder == null && isRequery != null && isRequery.equals("true")){
%>
	<font size="2">数据查询中......</font>
<%
	}
%>
<OBJECT
ID="F1Book1"
CLASSID="clsid:B0475003-7740-11D1-BDC3-0020AF9F8E6E"
CODEBASE="/activex/setup.exe"
WIDTH = 0
HEIGHT = 0
ALIGN = center
>
<param name="_ExtentX" value="18336">
<param name="_ExtentY" value="8837">
<param name="_0" value=")A)@#-@*?*?@@@@J@*uB@@)NA@@D@@P@@*BF@@I@FE@F@@@+nDPF@@+oT@@@*?@@*?*?@@.????????3?.}R@@@@*[h*RSx@@@@@A@)XBNA@qU+H@@@*??*PA@@@@*F@E@)A2)i!)lqU+H@@@*??*|B@@@@*F@E@)A2)i!)lqU+H@B@*??*PA@@@@*F@E@)A2)i!)lqU+H@B@*??*|B@@@@*F@E@)A2)i!)lqU+H@@@*??*PA@@@@*F@E@)A2)i!)l^kE@S@Ab@*%*?b@c@l@c@c@p@{@b@*%*?b@(1C@m@c@l@c@c@p@^uF@X@Ab@*%*?b@c@l@c@c@p@{@)[@)R@%@$@)]@b@*%*?b@(1C@m@c@l@c@c@p@^wG@Y@Ab@*%*?b@c@l@c@c@p@n@p@p@{@b@*%*?b@(1C@m@c@l@c@c@p@n@p@p@^)AH@^@Ab@*%*?b@c@l@c@c@p@n@p@p@{@)[@)R@%@$@)]@b@*%*?b@(1C@m@c@l@c@c@p@n@p@p@^)Qj@f@Ab@*%*?b@j@`@)_@m@c@l@c@c@p@{@b@*%*?b@j@`@(1C@m@c@l@c@c@p@{@b@*%*?b@j@`@)_@m@b@m@b@{@)@@^^i@Y@@j`clccp{j`(1Cmclccp{j`bmb{)@^!l@n@Ab@*%*?b@j@`@)_@m@c@l@c@c@p@n@p@p@{@b@*%*?b@j@`@(1C@m@c@l@c@c@p@n@p@p@{@b@*%*?b@j@`@)_@m@b@m@b@)?@)?@{@)@@^fk@a@@j`clccpnpp{j`(1Cmclccpnpp{j`bmb)?)?{)@^ZW@U@@(1Cdclccp)_i{(1Ch(1Cdclccp(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